home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / DTS.Draw / TreeObj2.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-05  |  1.2 KB  |  59 lines  |  [TEXT/MPS ]

  1. #ifndef __TREEOBJ2__
  2. #define __TREEOBJ2__
  3.  
  4. #ifndef __TREEOBJ__
  5. #include "TreeObj.h"
  6. #endif
  7.  
  8. #define NEW_EDIT          1        /* Application edit types. */
  9. #define DELETE_EDIT       2
  10. #define COPY_EDIT         3
  11. #define MOVE_EDIT         4
  12. #define SIZE_EDIT         5
  13. #define GROUP_EDIT        6
  14. #define UNGROUP_EDIT      7
  15. #define MOVEFORWARD_EDIT  8
  16. #define MOVETOFRONT_EDIT  9
  17. #define MOVEBACKWARD_EDIT 10
  18. #define MOVETOBACK_EDIT   11
  19. #define CLIPBOARD_EDIT    12
  20. #define PENSIZE_EDIT      13
  21. #define COLORCHANGE_EDIT  14
  22. #define DRAGDROP_EDIT     15
  23.  
  24.  
  25. #define CLICKMESSAGE     128
  26. #define     CLICKSELECT      0
  27. #define     CLICKDRAG        1
  28.  
  29. #define KEYMESSAGE       129
  30.  
  31. #define SETSELECTMESSAGE 130
  32. #define     SELECTOFF        0
  33. #define     SELECTON         1
  34. #define     SELECTTOGGLE     2
  35. #define     SELECTNODRAW     0x80
  36.  
  37. #define GETSELECTMESSAGE 131
  38.  
  39. #define SIZEMESSAGE      132
  40.  
  41.  
  42.  
  43. typedef struct {
  44.     short        message;
  45.     EventRecord    localEvent;
  46.     Point        offset;
  47.     short        grabber;
  48.     short        oldFlip, newFlip;
  49. } ClickInfo;
  50.  
  51.  
  52.  
  53. TreeObjHndl    DoTreeHitTest(TreeObjHndl hndl, ClickInfo *click);
  54. void        DoTreeDraw(TreeObjHndl hndl, short drawType);
  55. void        DoTreeSelect(TreeObjHndl hndl, short selectType);
  56. long        DoTreeObjMethodClipped(TreeObjHndl hndl, short message, long data);
  57.  
  58. #endif
  59.